package com.huiyun.project.im.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * IM组用户表
 * </p>
 *
 * @author DESKTOP-CIBUH3O
 * @since 2020-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("im_group_user")
@ApiModel(value = "ImGroupUser对象", description = "IM组用户表")
public class ImGroupUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "IM组ID")
    private String imGroupId;

    @ApiModelProperty(value = "用户Id")
    private String userId;

    @ApiModelProperty(value = "别名")
    private String aliasName;

    @ApiModelProperty(value = "0.普通成员；1.管理员；2.群主")
    private Integer type;

    private Date createTime;


}
